package com.zq.it.dao.common;

/**
 * PageDAO分页相关的dao组件
 * 
 * @author 王凡
 * 
 * @version $ID: PageDAO.java 2013-3-27 王凡@$
 */
public class PageConfig

{

	private int page; // 要查询的页数
	private int pageSize; // 页面要显示的数据条数
	private String countHql; // 查询总数量的hql
	private String hql; // hql语句
	private String url; // 设置请求url
	private String extendUrl; // 设置url参数
	private int perPageCount; // 设置显示多少分页按钮

	/**
	 * 查询语句的主体sql
	 * 
	 * @param str
	 */
	public void setHql(String str) {
		this.hql = str;
	}

	/**
	 * 设置查询总数的hql
	 * 
	 * @param countHql
	 */
	public void setCountHql(String countHql) {
		this.countHql = countHql;
	}

	/**
	 * 设置要显示的页面
	 * 
	 * @param page
	 */
	public void setPage(int page) {
		this.page = page;
	}

	/**
	 * 设置一个页面显示的数据量
	 * 
	 * @param pageSize
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPage() {
		return page;
	}

	public int getPageSize() {
		return pageSize;
	}

	public String getCountHql() {
		return countHql;
	}

	public String getHql() {
		return hql;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getExtendUrl() {
		return extendUrl;
	}

	public void setExtendUrl(String extendUrl) {
		this.extendUrl = extendUrl;
	}

	public int getPerPageCount() {
		return perPageCount;
	}

	public void setPerPageCount(int perPageCount) {
		this.perPageCount = perPageCount;
	}

}
